package huawei_nowcoder;

import java.util.Scanner;

/**
 * @order  13
 * @decription 句子逆序
 */
public class SentenceReverse {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        String str=scanner.nextLine();

        String[] strings=str.split(" ");
        StringBuffer stringBuffer=new StringBuffer();
        for (int i = 0; i < strings.length; i++) {
            stringBuffer.append(strings[strings.length-1-i]).append(" ");
        }
        System.out.println(stringBuffer.toString());
    }
}
